/*
 * Runs.h
 *
 *  Created on: 2012-9-14
 *      Author: yangentao@gmail.com
 */

#ifndef RUNS_H_
#define RUNS_H_


//[from, to)
class StyleRange {
public:
	int from;
	int to;
	int style;
public:
	StyleRange();
	StyleRange(int from_, int to_);
	StyleRange(int from_, int to_, int style_);
public:
	inline bool isValid() {
		return from != to;
	}
};

class Runs {
public:
	Runs() {

	}
	virtual ~Runs() {

	}
public:
	void setStyle(StyleRange styleRange) {

	}
	StyleRange getStyle(int pos) {
		return StyleRange();
	}
	StyleRange nextStyle(StyleRange preStyleRange) {
		return StyleRange();
	}
};

#endif /* RUNS_H_ */
